﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Net.Mail;
using System.Web.Security;
public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
         protected void Button1_Click(object sender, EventArgs e)
    {
        using (System.Net.Mail.MailMessage mailMessage = new System.Net.Mail.MailMessage())
        {
           System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.5:25";
            SmtpClient smtp = new SmtpClient();
            smtp.Host = "192.168.0.5";
            smtp.Port = 25;
            smtp.Credentials = new System.Net.NetworkCredential("fpm", "fpm");
            smtp.EnableSsl = false;
            mailMessage.To.Add("prowshan@gmail.com");
            mailMessage.CC.Add("khalili.sadegh@gmail.com");
            mailMessage.Subject = "This is subject";
            mailMessage.Body = "Khodemon";
            mailMessage.From = new System.Net.Mail.MailAddress("fpm@bonyadmaskanfars.ir");
            smtp.Send(mailMessage);
        }

       
    }
    protected void Button6_Click(object sender, EventArgs e)
    {
       //MembershipUser mu= Membership.GetUser("bon-firozabad") ;
       Membership.DeleteUser("firozabad", true);
       DataAccess.TblUserDetail.Delete(DataAccess.TblUserDetail.Columns.UserName, "firozabad");
        //mu.UnlockUser() ;
        //Membership.UpdateUser(mu);
    }

    protected void Button7_Click(object sender, EventArgs e)
    {

        com.sobhsms.www.Service1 s = new com.sobhsms.www.Service1();
      string[] q=  s.AccountsInfo("Pwebsrvbnydmskn90");
    string[] aq=  s.CreditialAccountsInfo("Pwebsrvbnydmskn90");
        string[] D = { "09171876621"};
        string str = "لطفاهرچه سریعتربه وبسایت www.bonyadmaskanfars.ir/fpm مراجعه بفرمایید.";
        str=str.Replace("@", Environment.NewLine);
        long[] r = s.SendPackageMessageConcFast(D,str, "Pwebsrvbnydmskn90");
        Response.Write(r[0].ToString());
    }
}